package com.example.design.factory.version;

public class FactoryPro {

    public  static  SendMagger Pro(int type){

        SendMagger sendMagger=null;
        switch (type){
            case 1:
                sendMagger=new QQsend();
                break;
            case 2:
                sendMagger=new WXsennd();
                break;
        }

        return sendMagger;
    }
}
